package com.tdkj.model.shop;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * 
 */
@Entity
@Table(name = "shop_good_showcase_custom_buy")
public class BeanGoodShowcaseCustomBuy extends BaseEntity {

	private BeanGoodShowcaseCustom custom;
	private BeanUser user;
	private Timestamp buyTime;
	/**
	 * @return the custom
	 */
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="custom_id")
	public BeanGoodShowcaseCustom getCustom() {
		return custom;
	}
	/**
	 * @param custom the custom to set
	 */
	public void setCustom(BeanGoodShowcaseCustom custom) {
		this.custom = custom;
	}
	/**
	 * @return the user
	 */
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="user_id")
	public BeanUser getUser() {
		return user;
	}
	/**
	 * @param user the user to set
	 */
	public void setUser(BeanUser user) {
		this.user = user;
	}
	/**
	 * @return the buyTime
	 */
	public Timestamp getBuyTime() {
		return buyTime;
	}
	/**
	 * @param buyTime the buyTime to set
	 */
	public void setBuyTime(Timestamp buyTime) {
		this.buyTime = buyTime;
	}
	
	
	
	
	
}